package com.hxd.otc.api;

import com.hxd.otc.base.BaseBean;
import com.hxd.otc.module.convenience.bean.AppStoreBean;
import com.hxd.otc.module.my.bean.BaseListBean;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by lzy on 2019/1/4 0004.
 * description ${应用市场Api}
 */
public interface IMarketApi {

    /**
     * 应用列表
     */
    @GET("market/list")
    Observable<BaseBean<BaseListBean<AppStoreBean>>> getMarketList(@Query("currentPage") int current, @Query("showCount") int size);

    /**
     * 更新下载次数
     *
     * @param id 应用对象的id
     */
    @GET("market")
    Observable<BaseBean<Object>> countDownloadNums(@Query("id") String id);
}
